package com.ipzoe.common.core.response;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 请求失败的返回
 *
 * @author eric
 */
@Data
@EqualsAndHashCode(callSuper=true)
public class ErrorResponseData<T> extends ResponseData<T> {

	private static final long serialVersionUID = 1L;
	
	/**
     * 异常的具体类名称
     */
    private String exceptionClazz;

    public ErrorResponseData(String message) {
        super(false, ResponseData.DEFAULT_ERROR_CODE, message, null);
    }

    public ErrorResponseData(Integer code, String message) {
        super(false, code, message, null);
    }

    public ErrorResponseData(String message, T object) {
        super(false, ResponseData.DEFAULT_ERROR_CODE, message, object);
    }

    public ErrorResponseData(Integer code, String message, T object) {
        super(false, code, message, object);
    }
}
